package com.bcmusic.user.feign;

import com.bcmusic.user.pojo.User;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;

/**
 * @author yg
 */
@FeignClient("user")
@RequestMapping("/user")
public interface UserFeign {
    @GetMapping("/findUser/{phone}")
    Result<User> findUserByPhone(@PathVariable("phone") String phone);

    @GetMapping("getRealName")
    public Result getRealName();
    /**
     * 批量查询用户真名
     *
     * @param userNumList
     * @return
     */
    @PostMapping("/getRealNameList")
    public Result<List<String>> getRealNameList(@RequestParam("userNumList") List<String> userNumList);

}
